package com.atguigu.tingshu.account.service.impl;

import com.atguigu.tingshu.account.mapper.UserAccountMapper;
import com.atguigu.tingshu.account.service.MqOpsService;
import com.atguigu.tingshu.model.account.UserAccount;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * ClassName: MqOpsServiceImpl
 * Package: com.atguigu.tingshu.account.service.impl
 * Description:
 *
 * @Create 2025/1/13 23:50
 * @Version 1.0
 */
@Service
public class MqOpsServiceImpl implements MqOpsService {


    @Autowired
    private UserAccountMapper userAccountMapper;

    @Override
    public void userAccountInit(String userId) {

        UserAccount userAccount = new UserAccount();
        userAccount.setUserId(Long.parseLong(userId));
        userAccountMapper.insert(userAccount);
    }
}
